<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">
      
	<ui:composition template="/admin/template/inicial.xhtml">
      	<ui:define name="corpo">
      		<div class="header">
				<div class="height-1">
					<h:form>
		 				<rich:toolBar height="26" itemSeparator="grid">
      						<rich:toolBarGroup>
          						<h:outputLink value="registerpaymentforms.jsf"><h:graphicImage value="../Imagens/user-add.png" styleClass="img-add-class"/></h:outputLink>
      						</rich:toolBarGroup>
    					</rich:toolBar>
						<rich:dataTable rows="6" value="#{bbCard.cards}" var="cd" id="tabelaPaymentForms" styleClass="width-1">
				   			<rich:column styleClass="rich-column-width">
                       			<f:facet name="header">
                       				<h:outputText value="Nome" />
                       			</f:facet>
                        		<h:outputText value="#{cd.flag}" />
                   			</rich:column>
                   			<rich:column colspan="2">         
                   				<f:facet name="header">
                   					<h:outputText value="Ações" />
                   				</f:facet>
                   				<h:commandLink action="edit" id="edit">
                   					<f:verbatim></f:verbatim>
                   					<h:graphicImage value="../Imagens/edit.png" styleClass="border-null"/>    
                   					<f:setPropertyActionListener target="#{bbCard.card}" value="#{cd}" />             			
                   				</h:commandLink>
                   				<a4j:commandLink action="#{bbCard.delete}" reRender="tabelaPaymentForms">
                   					<h:graphicImage value="../Imagens/delete.png" styleClass="border-null"/>
                   					<f:setPropertyActionListener target="#{bbCard.card}" value="#{cd}" />
                   				</a4j:commandLink>
                   			</rich:column> 
						</rich:dataTable>
						<rich:datascroller for="tabelaPaymentForms" />
					</h:form>
				</div>
			</div>
		</ui:define>
	</ui:composition>
</html>